<div id="left">
<div id="breadcrumb">Register here. <?php echo $html->link('Already a member?',array('controller' => 'users', 'action' => 'login')); ?></div>
<div class="post">
<p>Enter your information here. Make sure that it is correct.</p>
</div>
<div class="users form">
<?php echo $form->create('User');?>
	<fieldset>
	<legend><?php __('Registration Form');?></legend>
	<?php
		echo $form->input('username', array('after' => $form->error('username_unique', 'This username is already registered.')));
		if(isset($erremptyusername) && $erremptyusername)
		{
			echo '<font color="maroon"><b>Need a username.</b></font>';
		}
		echo $form->input('email');
		/*
		echo $form->input('email', array('after' => $form->error('email_unique', 'This email is already registered.')));
		if(isset($erremptyemail) && $erremptyemail)
		{
			echo '<font color="maroon"><b>Need an email!</b></font>';
		}*/
		echo $form->input('password');
		if(isset($errPasswordMatch) && $errPasswordMatch)
		{
			echo '<font color="maroon"><b>Passwords did not match.</b></font>';
		}
		
		
		if(isset($erremptypassword) && $erremptypassword)
		{
			echo '<font color="maroon"><b>Need a password.</b></font>';
		}
		
		else if(isset($leastSix) && $leastSix)
		{
			echo '<font color="maroon"><b>Password must be at least 6 characters.</b></font>';
		}
		echo $form->label('Verify Password');
		echo $form->password('verify_password');
	
		echo $form->input('first_name');
		if(isset($erremptyfname) && $erremptyfname)
		{
			echo '<font color="maroon"><b>Need a first name.</b></font>';
		}
		echo $form->input('last_name');
		if(isset($erremptylname) && $erremptylname)
		{
			echo '<font color="maroon"><b>Need a last name.</b></font>';
		}
		
		echo $form->label('Hometown');
		echo $complete->cityAutocomplete();
		if(isset($errhometown) && $errhometown)
		{
			echo '<font color="maroon"><br><b>Use Autocomplete.</b></font>';
		}
		echo $form->submit('/img/submit.jpg' , array( 'alt' => 'submit', 'id' => 'btnflt'));
		
		//echo $form->hidden('confirmed', array('value' => '0'));
		//echo $form->hidden('confirmation_code', array('value' => '1'));
		//echo $form->input('User');
		//echo $form->hidden('User.User.user_id', array('value' => '1'));
	?>
	</fieldset>
</div>
</div>
